# -*- coding:utf-8 -*-

from fastapi import APIRouter
from fastapi import Query, Request

from workon.module.index import bind

router = APIRouter()


@router.get("/bind", tags=["xiot"])
def do_bind(req: Request,
            abc: str = Query(..., max_length=20)):
    return bind(req).format()
